package cn.mothin.action.common;

import org.springframework.beans.factory.annotation.Autowired;

import cn.mothin.frame.core.annotation.NeedLogon;
import cn.mothin.frame.core.base.BaseAction;
import cn.mothin.service.common.DisplayService;
import cn.mothin.vo.common.DisplayForm;

@SuppressWarnings("serial")
public class DisplayAction extends BaseAction {
    private DisplayForm displayForm = new DisplayForm();

    @Override
    public Object getModel() {
        return displayForm;
    }

    @Autowired
    private DisplayService displayService;

    @NeedLogon
    public String query() {
        return renderJson(displayService.query(displayForm));
    }
}
